#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
typedef struct Stack
{
	char* a;
	int size;
	int capacity;
}Stack;

void StackInit(Stack* ps)
{
	ps->a = (char*)malloc(sizeof(char) * 4);
	ps->size = 0;
	ps->capacity = 4;
}

void CheckStackCapacity(Stack* ps)
{
	if (ps->capacity == ps->size)
	{
		int newcapacity = 2 * ps->capacity;
		char* temp = (char*)malloc(sizeof(char) * newcapcity);
		if (temp == NULL)
		{
			printf("malloc fail\n");
			exit(-1);
		}
		else
		{
			ps->a = temp;
			ps->capacity = newcapacity;
		}
	}
}

void StackPush(Stack* ps, char ch)
{
	CheckStackCapacity(ps);

	ps->a[ps->size] = ch;
	ps->size++;
}
int main()
{
	Stack ST;
	StackInit(&ST);
	char ch = 0;
	while ((ch = getchar()) != EOF)
	{
		if (ch == '(')
		{
			StackPush(&ST,ch);
		}
		else if(ch==')')
		{

		}
	}
}